package com.sunny.cloudfeignconsumer;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Feign
 *
 * @author Sunny
 * @date 2019/11/12 上午10:08
 */
@RestController
public class FeignController {

    @Autowired
    private FeignInterface feignInterface;

    @GetMapping("hi")
    public String hiService(@RequestParam(value = "name") String name) {
        return feignInterface.hiService(name);
    }
}
